﻿using FoodModel;
using J.FoodRepository.InterFace;
using J.IRepository;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace J.FoodRepository.Impl
{
    public class BenchTableRepository : BackRepository<BenchTableModel>, IBenchTableRepository
    {
        public BenchTableRepository(ISqlSugarClient db) : base(db)
        {
        }
        /// <summary>
        /// 台费添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public async Task<int> BenchTableAdd(BenchTableModel model)
        {
            return await base.AddAsync(model);
        }
        /// <summary>
        /// 台费添加显示
        /// </summary>
        /// <returns></returns>
        public async Task<List<BenchTableModel>> BenchTableBack()
        {
            return await base.GetAllAsync();
        }
    }
}
